<?php
namespace App\Exceptions;

use Symfony\Component\HttpKernel\Exception\HttpException;

class CoursePaidException extends HttpException
{
    protected $code = 'order.paid.error';

    public function __construct($message = '课程已购买')
    {
        parent::__construct(400, $message);
    }
}
